//
//  MeItemCell.m
//  laowu
//
//  Created by yinqy on 15/4/30.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "MeItemCell.h"

@implementation MeItemCell


+(instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    
    static  NSString  *CellIdentiferId = @"MeItemCell";
    MeItemCell  *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if (cell == nil) {
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"MeItemCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

- (void)awakeFromNib {
    
}

-(void)setItemInfo:(MeItemInfo *)itemInfo{
    _itemInfo = itemInfo;
    [self.icon setImage:IMG(itemInfo.icon)];
    [self.title setText:itemInfo.title];
}

@end
